<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>重复渐变</title>
    <style>
        .box1{
            margin: 100px auto;
            margin-bottom: 0;
            width: 600px;
            height: 300px;
            background: repeating-linear-gradient(to right, red, blue 33.333%);
            border: none;
        }
        .box2{
            margin: 50px auto;
            margin-bottom: 0;
            width: 300px;
            height: 300px;
            background: repeating-radial-gradient( red, blue 33.333%);
            border: none;
        }
    </style>
</head>
<body>
    <!-- 使用repeating-linear-gradient来做重复渐变，在做重复渐变时，最后一个颜色必须要设置成百分比 -->
    <div class="box1"></div>
    <div class="box2"></div>
</body>
</html>